import 'package:json_annotation/json_annotation.dart';

part 'insurance_model.g.dart';


@JsonSerializable()
class InsuranceModel extends Object {

  @JsonKey(name: 'code')
  int code;

  @JsonKey(name: 'message')
  String message;

  @JsonKey(name: 'data')
  InsuranceData insuranceData;

  InsuranceModel(this.code,this.message,this.insuranceData,);

  factory InsuranceModel.fromJson(Map<String, dynamic> srcJson) => _$InsuranceModelFromJson(srcJson);

  Map<String, dynamic> toJson() => _$InsuranceModelToJson(this);

}


@JsonSerializable()
class InsuranceData extends Object {

  @JsonKey(nullable: true,name: 'hoji_logo')
  dynamic hojiLogo;

  @JsonKey(nullable: true,name: 'hoji_manager')
  dynamic hojiManager;

  @JsonKey(nullable: true,name: 'hoji_tel')
  dynamic hojiTel;

  @JsonKey(nullable: true,name: 'service_tel')
  dynamic serviceTel;

  @JsonKey(nullable: true,name: 'land_line')
  dynamic landLine;

  @JsonKey(name: 'organ_two')
  String organTwo;

  @JsonKey(name: 'organ_three')
  String organThree;

  @JsonKey(name: 'organ_four')
  String organFour;

  @JsonKey(name: 'name')
  String name;

  @JsonKey(name: 'name_shorter')
  String nameShorter;

  InsuranceData(this.hojiLogo,this.hojiManager,this.hojiTel,this.serviceTel,this.landLine,this.organTwo,this.organThree,this.organFour,this.name,this.nameShorter,);

  factory InsuranceData.fromJson(Map<String, dynamic> srcJson) => _$InsuranceDataFromJson(srcJson);

  Map<String, dynamic> toJson() => _$InsuranceDataToJson(this);

}


